package sqlite.domain;

import sqlite.annotation.Column;
import sqlite.annotation.Table;

/**
 * Created with IntelliJ IDEA.
 * User: 甘竞存
 * Date: 14-11-10
 * Time: 下午12:11
 * 对应erp中间库：Order_goods表
 */
@Table("order_goods")
public class OrderItems {
    @Column("order_no")
    private String orderNo ;       //订单号
    @Column("Goods_sn")
    private String productCode ;  //商品代号
    @Column("Color_code")
    private String colorCode ;    //颜色代号
    @Column("Size_code")
    private String sizeCode ;      //尺码代号
    @Column("price")
    private Double price ;         //商品价格
    @Column("je")
    private Double totalPrice ;   //总价
    @Column("num")
    private Integer quantity ;     //购买数量
    @Column("outer_sku_id")
    private String skuOuterId ;    //sku的外部id
    @Column("sku_properties_name")
    private String skuName ;       //sku名称

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getColorCode() {
        return colorCode;
    }

    public void setColorCode(String colorCode) {
        this.colorCode = colorCode;
    }

    public String getSizeCode() {
        return sizeCode;
    }

    public void setSizeCode(String sizeCode) {
        this.sizeCode = sizeCode;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getSkuOuterId() {
        return skuOuterId;
    }

    public void setSkuOuterId(String skuOuterId) {
        this.skuOuterId = skuOuterId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "OrderItems{" +
                "orderNo='" + orderNo + '\'' +
                ", productCode='" + productCode + '\'' +
                ", colorCode='" + colorCode + '\'' +
                ", sizeCode='" + sizeCode + '\'' +
                ", price=" + price +
                ", totalPrice=" + totalPrice +
                ", quantity=" + quantity +
                ", skuOuterId='" + skuOuterId + '\'' +
                ", skuName='" + skuName + '\'' +
                '}';
    }
}
